<template>
	<view class="video-item-cont" @click="onClick(item.id, item.type)">
		<view class="video-img">
			<image class="video-img-bg" :src="item.img"></image>
			<image class="video-img-icon" src="../../static/icon/bofang.png" mode=""></image>
		</view>
		<view class="video-title elipsis">{{item.title}}</view>
		<view class="viede-describe elipsis">{{item.remark}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
		data() {
			return {
				
			};
		},
		mounted() {
			
		},
		methods: {
			onClick(id) {
				if(this.item.url) {
					this.$emit("paly", this.item)
					return
				}
				let url = `/pages/market/article/article?id=${id}`
				this.onGoNext(url)
			}
		}
	}
</script>

<style lang="scss" scoped>
.video-item-cont{
	width: 278rpx;
	overflow: hidden;
	.video-img{
		width: 278rpx;
		height: 156rpx;
		position: relative;
		&-bg{
			width: 100%;
			height: 100%;
			border-radius: 10rpx;
		}
		&-icon{
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
			margin: auto;
			width: 31rpx;
			height: 43rpx;
		}
	}
	.video-title{
		margin-top: 20rpx;
		width: 278rpx;
		font-size: 28rpx;
		line-height: 28rpx;
		color: $text-color;
	}
	.viede-describe{
		margin-top: 13rpx;
		width: 278rpx;
		font-size: 20rpx;
		line-height: 20rpx;
		color: $text-color-grey;
	}
}
</style>
